home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Utilities Professional 1-1500
/
Utilities Professional 1-1500 (1994)(WPD)[!].iso
/
07511000
/
var0784.dms
/
var0784.adf
/
McC
/
mccnext.txed
< prev
next >
Wrap
Text File
|
1978-01-24
|
2KB
|
45 lines
/************************************************************************/
/* */
/* This macro finds the next error message and moves the cursor in */
/* edit window to the corresponding line. */
/* */
/* Version 2.0 Written: 2/20/89 By: John McClennan */
/* */
/************************************************************************/
options results
options failat 30
mainaddr = getclip('McCmain') /* get port address of edit window */
erraddr = getclip('McCerr') /* get address of error message
window */
address value mainaddr /* switch to edit port */
'status f' /* get filename */
filename = result
address value erraddr /* switch to error message port */
no_more = 0
do until ((fname = filename) | (no_more = 1))
'down'
'find Error' /* find error description line */
if rc = 1 then do
no_more = 1 /* at end of file */
'bottom'
end
else do
'options results'
'status l' /* get current line */
inline = result
parse value inline with fname linenum . /* parse the line */
end
end
address value mainaddr
'jump' linenum '0' /* move to line containing error */
return